package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGroupAgree extends Object implements IMessageBase
    {
        public var type:EGroupMsgType;
        public var entityId:SEntityId;
        public var certId:String;
        public const _type:int = 20402;
        public static var _regist:SGroupAgree = new SGroupAgree(true);

        public function SGroupAgree(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SGroupAgree();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.type.__write(param1);
            this.entityId.__write(param1);
            param1.writeString(this.certId);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.type = EGroupMsgType.__read(param1);
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.certId = param1.readString();
            
        }

    }
}
